<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link th:href="@{/css/style.css}" rel="stylesheet" type="text/css" />
  <script type="text/javascript" th:src="@{/js/jquery-1.12.4.js}"></script>

</head>

<body>
<div class="place"> <span>位置：</span>
  <ul class="placeul">
    <li>仓库管理</li>
    <li>出库管理</li>
    <li>添加出库</li>
  </ul>
</div>
<form action="/erp1/rep/ckware/addCkware" method="post" class="formbody">
  <div class="formtitle"><span>出库信息</span></div>

  <ul class="forminfo">
    <span th:text="${msg}" style="color: red"></span>
    <li>
      <label>订单编号</label>
      <select class="dfselect" name="indent">
        <option value="">请选择</option>
        <option th:each="o :${ordersList}" th:value="${o.orderid}" th:text="${o.orderid}">请选择</option>
      </select>
      &nbsp;&nbsp;
      <a id="aaa" href="" title="点击查看客户详细信息" class="tablelink">详情</a>
      <i>必须是审核通过的订单</i>
    </li>
    <script>
      $("select[name=indent]").change(function () {
        var page="/erp1/market/orders/ordersDetails?orderid="+$(this).val();

        $("#aaa").prop("href",page);
      });
    </script>
    <li>
      <label>仓库</label>
      <select class="dfselect" name="warehouseId">
          <option value="">请选择</option>
        <option th:each="w :${warehouses}" th:value="${w.id}" th:text="${w.cName}"></option>
      </select>
      <i>必选</i>
    </li>
    <!--<li>-->
      <!--<label>出库时间</label>-->
      <!--<input name="cDate" th:value="${#dates.format(#dates.createToday(),'yyyy-MM-dd')}" type="text" class="dfinput" />-->
      <!--<i>必填</i>-->
    <!--</li>-->
    <!--<li>-->
      <!--<label>出库人</label>-->
      <!--<input type="hidden" name="usersId" th:value="${session.currUser.uId}"  readonly="readonly" class="roinput" />-->
      <!--<input name="uName" type="text" th:value="${session.currUser.uname}" readonly="readonly" class="roinput" />-->
      <!--<i>不能编辑</i>-->
    <!--<li>-->
    <!--<li>
      <label>出库时间</label>
      <input name="cDate" th:value="${#dates.format(#dates.createToday(),'yyyy-MM-dd')}" type="text" class="dfinput" />
      <i>必填</i>
    </li>-->
    <!--<li>
      <label>出库人</label>
      <input type="hidden" name="usersId" th:value="${session.currUser.uId}"  readonly="readonly" class="roinput" />
      <input name="uName" type="text" th:value="${session.currUser.uname}" readonly="readonly" class="roinput" />
      <i>不能编辑</i>
    <li>-->
      <label>&nbsp;</label>
      <input name="" type="submit" class="btn" value="确定"/>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <input name="" type="button" class="btn" value="返回" onclick="window.history.go(-1);"/>

    </li>
  </ul>
  </form>
</body>
</html>
